package com.yshkj.payment.dto;

import com.yshkj.payment.entity.medicinal.Spec;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by 唐旭 on 2016/10/8.
 */
@Data
public class SpecSaleListDto extends JsonBaseDto {

    private List<SpecSaleDto> list = new ArrayList<>();

    public SpecSaleListDto() {
    }

    public SpecSaleListDto(List<Spec> specList) {
        for (Spec spec : specList) {
            list.add(new SpecSaleDto(spec));
        }
    }
}
